// 将element-ui collapse组件的模板重写
<template>
  <draggable
      chosenClass="active"
      animation="500"
      filter=".forbid"
      :preventOnFilter="false"
      class="el-collapse"
      :list="list">
  <slot></slot>
  </draggable>
</template>

<script>
import draggable from 'vuedraggable';

import {
    Collapse
} from 'element-ui';

export default {
    // 重写collapse组件
    extends: Collapse,

    props: {
        list: Array
    },

    components: {
        draggable
    }
};
</script>
